package com.heima;

public class OperatorDemo1 {
    public static void main(String[] args) {
        //掌握基本算数运算符的使用：+ - * / %
        int a = 10;
        int b = 3;
        System.out.println(a + b);
        System.out.println(a - b);
        System.out.println(a * b);
        System.out.println(a / b); //3.3333 ==> 3
        System.out.println(a * 1.0 / b);//3.3333
        System.out.println(3 / 2 * 1.0); //1.0
        System.out.println(a % b);
    }
}
